package com.xjh.basestudy.designmode.behaviorMode.behaviorMode11_Interpreter;

/**
 * @Author XuJianHua
 * @Date 2022/10/6 23:21
 * @Description 鼠标移动表达式Move

 */
public class Move implements Expression {
    // 鼠标指针位置坐标
    private int x, y;

    public Move(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public void interpret() {
        System.out.println("移动鼠标：【" + x + "," + y + "】");
    }

}